const state= {
        user:{
			id:'',
			name:'',
			jwt:'',
			wxid:'',
			szc:'',
			deptCode:'',
			nickName:'',
			avatarUrl:'',
			phone: '',
			qmPath:'',
			openId:'',
			isOpenMsg:'',
			auths:[],
			clockPoint:[]
		},
		hasLogin:false,
		token:'',
		jwzls:[],
		gzzs:[]
		
    }
const mutations= {
		updateUserInfo(state,user){
			state.user = {};
			Object.assign(state.user,user);
			/* state.hasLogin = true;
			state.user.id = user.id || '';
			state.user.name = user.name || '';
			state.user.wxid = user.wxid || '';
			state.user.szc = user.szc || '';
			state.user.deptCode = user.deptCode || '';
			state.user.phone = user.phone || '';
			state.user.qmPath = user.qmPath || '';
			state.user.openid = user.openId || '';
			state.user.isOpenMsg = user.isOpenMsg || '';
			state.user.auths = user.auths || []; */
		},
		setNikeName(state,nikeName){
			state.user.nikeName = nikeName || '';
		},
		setAvatarUrl(state,avatarUrl){
			state.user.avatarUrl = avatarUrl || '';
		},
		setJwzls(state,jwzls){
			//state.jwzls = [];
			state.jwzls = jwzls || [];
		},
		setGzzs(state,gzzs){
			state.gzzs = gzzs;
		}
		
    }
export default {
	state,
	mutations
};